#pragma once

#include "IResourceFile.h"

#include "..\ZipFile.h"

class ZippedResourceFile : public IResourceFile
{
	private:

		ZipFile *_pZipFile;

		std::wstring _resFileName;

	public:
	
		ZippedResourceFile(const std::wstring resFileName ) 
		{ 
			_pZipFile = NULL; 
			_resFileName = resFileName; 
		}

		virtual ~ZippedResourceFile();

		virtual bool Open();

		virtual int GetRawResourceSize(const Resource &r);

		virtual int GetRawResource(const Resource &r, char *buffer);

		virtual int GetNumResources() const;

		virtual std::string GetResourceName(int num) const;

};